package com.itheima.reggie.dao;

import com.itheima.reggie.entity.SetmealDish;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SetmealDishDao {
/*
保存
 */
    void batchSave(@Param("setmealDishes") List<SetmealDish> setmealDishes);

    void batchDelete(@Param("ids") List<Long> ids);
    @Select("select * from setmeal_dish where setmeal_id=#{id}")
    List<SetmealDish> findAll(Long id);
    @Select("select * from setmeal_dish where setmeal_id=#{setmealId} ")
    List<SetmealDish> findAllBysid(Long setmealId);

}
